package library.net.retrofit.callback;

import java.lang.reflect.Type;

import okhttp3.ResponseBody;

/**
 * @author Created by qiang.hou on 2017/12/18.
 * @version 1.0
 */
public abstract class RxStringCallback extends RxAbsCallback<String> {

    /**
     * 默认 ResponseBody里面只是二进制String数据
     */
    @Override
    protected String transform(ResponseBody response, Type type) throws Exception {
        return new String(response.bytes());
    }
}
